package com.atguigu.gulimall.product.entity.vo;

import lombok.Data;

import java.util.List;

@Data
public class CateJsonVo {


    /**
     * 一级分类的id
     */
    private Long catelog1Id;
    /**
     * 3级分类列表
     */
    private List<Catelog3List> catelog3List;
    /**
     * 二级分类id
     */
    private Long id;
    /**
     * 名字
     */
    private String name;

    public CateJsonVo() {
    }

    public CateJsonVo(Long catelog1Id, List<Catelog3List> catelog3List, Long id, String name) {
        this.catelog1Id = catelog1Id;
        this.catelog3List = catelog3List;
        this.id = id;
        this.name = name;
    }

    @Data
    public static class Catelog3List {
        /**
         * 2级分类id
         */
        private Long catelog2Id;
        /**
         * 三级分类id
         */
        private Long id;
        /**
         * 名字
         */
        private String name;

        public Catelog3List() {
        }

        public Catelog3List(Long catelog2Id, Long id, String name) {
            this.catelog2Id = catelog2Id;
            this.id = id;
            this.name = name;
        }
    }


}
